package com.TJGD.projectModule.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class previewRecordQuery {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer pageNo = 1;

    protected Integer startRow;

    protected Integer pageSize = 10;

    protected String fields;

    public previewRecordQuery() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo=pageNo;
        this.startRow = (pageNo-1)*this.pageSize;
    }

    public Integer getPageNo() {
        return pageNo;
    }

    public void setStartRow(Integer startRow) {
        this.startRow=startRow;
    }

    public Integer getStartRow() {
        return startRow;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize=pageSize;
        this.startRow = (pageNo-1)*this.pageSize;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setFields(String fields) {
        this.fields=fields;
    }

    public String getFields() {
        return fields;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPvAuditIdIsNull() {
            addCriterion("pv_audit_id is null");
            return (Criteria) this;
        }

        public Criteria andPvAuditIdIsNotNull() {
            addCriterion("pv_audit_id is not null");
            return (Criteria) this;
        }

        public Criteria andPvAuditIdEqualTo(Long value) {
            addCriterion("pv_audit_id =", value, "pvAuditId");
            return (Criteria) this;
        }

        public Criteria andPvAuditIdNotEqualTo(Long value) {
            addCriterion("pv_audit_id <>", value, "pvAuditId");
            return (Criteria) this;
        }

        public Criteria andPvAuditIdGreaterThan(Long value) {
            addCriterion("pv_audit_id >", value, "pvAuditId");
            return (Criteria) this;
        }

        public Criteria andPvAuditIdGreaterThanOrEqualTo(Long value) {
            addCriterion("pv_audit_id >=", value, "pvAuditId");
            return (Criteria) this;
        }

        public Criteria andPvAuditIdLessThan(Long value) {
            addCriterion("pv_audit_id <", value, "pvAuditId");
            return (Criteria) this;
        }

        public Criteria andPvAuditIdLessThanOrEqualTo(Long value) {
            addCriterion("pv_audit_id <=", value, "pvAuditId");
            return (Criteria) this;
        }

        public Criteria andPvAuditIdIn(List<Long> values) {
            addCriterion("pv_audit_id in", values, "pvAuditId");
            return (Criteria) this;
        }

        public Criteria andPvAuditIdNotIn(List<Long> values) {
            addCriterion("pv_audit_id not in", values, "pvAuditId");
            return (Criteria) this;
        }

        public Criteria andPvAuditIdBetween(Long value1, Long value2) {
            addCriterion("pv_audit_id between", value1, value2, "pvAuditId");
            return (Criteria) this;
        }

        public Criteria andPvAuditIdNotBetween(Long value1, Long value2) {
            addCriterion("pv_audit_id not between", value1, value2, "pvAuditId");
            return (Criteria) this;
        }

        public Criteria andPidIsNull() {
            addCriterion("pid is null");
            return (Criteria) this;
        }

        public Criteria andPidIsNotNull() {
            addCriterion("pid is not null");
            return (Criteria) this;
        }

        public Criteria andPidEqualTo(Integer value) {
            addCriterion("pid =", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidNotEqualTo(Integer value) {
            addCriterion("pid <>", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidGreaterThan(Integer value) {
            addCriterion("pid >", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidGreaterThanOrEqualTo(Integer value) {
            addCriterion("pid >=", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidLessThan(Integer value) {
            addCriterion("pid <", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidLessThanOrEqualTo(Integer value) {
            addCriterion("pid <=", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidIn(List<Integer> values) {
            addCriterion("pid in", values, "pid");
            return (Criteria) this;
        }

        public Criteria andPidNotIn(List<Integer> values) {
            addCriterion("pid not in", values, "pid");
            return (Criteria) this;
        }

        public Criteria andPidBetween(Integer value1, Integer value2) {
            addCriterion("pid between", value1, value2, "pid");
            return (Criteria) this;
        }

        public Criteria andPidNotBetween(Integer value1, Integer value2) {
            addCriterion("pid not between", value1, value2, "pid");
            return (Criteria) this;
        }

        public Criteria andPnameIsNull() {
            addCriterion("pname is null");
            return (Criteria) this;
        }

        public Criteria andPnameIsNotNull() {
            addCriterion("pname is not null");
            return (Criteria) this;
        }

        public Criteria andPnameEqualTo(String value) {
            addCriterion("pname =", value, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameNotEqualTo(String value) {
            addCriterion("pname <>", value, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameGreaterThan(String value) {
            addCriterion("pname >", value, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameGreaterThanOrEqualTo(String value) {
            addCriterion("pname >=", value, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameLessThan(String value) {
            addCriterion("pname <", value, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameLessThanOrEqualTo(String value) {
            addCriterion("pname <=", value, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameLike(String value) {
            addCriterion("pname like", value, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameNotLike(String value) {
            addCriterion("pname not like", value, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameIn(List<String> values) {
            addCriterion("pname in", values, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameNotIn(List<String> values) {
            addCriterion("pname not in", values, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameBetween(String value1, String value2) {
            addCriterion("pname between", value1, value2, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameNotBetween(String value1, String value2) {
            addCriterion("pname not between", value1, value2, "pname");
            return (Criteria) this;
        }

        public Criteria andPhumanIsNull() {
            addCriterion("phuman is null");
            return (Criteria) this;
        }

        public Criteria andPhumanIsNotNull() {
            addCriterion("phuman is not null");
            return (Criteria) this;
        }

        public Criteria andPhumanEqualTo(String value) {
            addCriterion("phuman =", value, "phuman");
            return (Criteria) this;
        }

        public Criteria andPhumanNotEqualTo(String value) {
            addCriterion("phuman <>", value, "phuman");
            return (Criteria) this;
        }

        public Criteria andPhumanGreaterThan(String value) {
            addCriterion("phuman >", value, "phuman");
            return (Criteria) this;
        }

        public Criteria andPhumanGreaterThanOrEqualTo(String value) {
            addCriterion("phuman >=", value, "phuman");
            return (Criteria) this;
        }

        public Criteria andPhumanLessThan(String value) {
            addCriterion("phuman <", value, "phuman");
            return (Criteria) this;
        }

        public Criteria andPhumanLessThanOrEqualTo(String value) {
            addCriterion("phuman <=", value, "phuman");
            return (Criteria) this;
        }

        public Criteria andPhumanLike(String value) {
            addCriterion("phuman like", value, "phuman");
            return (Criteria) this;
        }

        public Criteria andPhumanNotLike(String value) {
            addCriterion("phuman not like", value, "phuman");
            return (Criteria) this;
        }

        public Criteria andPhumanIn(List<String> values) {
            addCriterion("phuman in", values, "phuman");
            return (Criteria) this;
        }

        public Criteria andPhumanNotIn(List<String> values) {
            addCriterion("phuman not in", values, "phuman");
            return (Criteria) this;
        }

        public Criteria andPhumanBetween(String value1, String value2) {
            addCriterion("phuman between", value1, value2, "phuman");
            return (Criteria) this;
        }

        public Criteria andPhumanNotBetween(String value1, String value2) {
            addCriterion("phuman not between", value1, value2, "phuman");
            return (Criteria) this;
        }

        public Criteria andCheckedProgressIsNull() {
            addCriterion("checked_progress is null");
            return (Criteria) this;
        }

        public Criteria andCheckedProgressIsNotNull() {
            addCriterion("checked_progress is not null");
            return (Criteria) this;
        }

        public Criteria andCheckedProgressEqualTo(String value) {
            addCriterion("checked_progress =", value, "checkedProgress");
            return (Criteria) this;
        }

        public Criteria andCheckedProgressNotEqualTo(String value) {
            addCriterion("checked_progress <>", value, "checkedProgress");
            return (Criteria) this;
        }

        public Criteria andCheckedProgressGreaterThan(String value) {
            addCriterion("checked_progress >", value, "checkedProgress");
            return (Criteria) this;
        }

        public Criteria andCheckedProgressGreaterThanOrEqualTo(String value) {
            addCriterion("checked_progress >=", value, "checkedProgress");
            return (Criteria) this;
        }

        public Criteria andCheckedProgressLessThan(String value) {
            addCriterion("checked_progress <", value, "checkedProgress");
            return (Criteria) this;
        }

        public Criteria andCheckedProgressLessThanOrEqualTo(String value) {
            addCriterion("checked_progress <=", value, "checkedProgress");
            return (Criteria) this;
        }

        public Criteria andCheckedProgressLike(String value) {
            addCriterion("checked_progress like", value, "checkedProgress");
            return (Criteria) this;
        }

        public Criteria andCheckedProgressNotLike(String value) {
            addCriterion("checked_progress not like", value, "checkedProgress");
            return (Criteria) this;
        }

        public Criteria andCheckedProgressIn(List<String> values) {
            addCriterion("checked_progress in", values, "checkedProgress");
            return (Criteria) this;
        }

        public Criteria andCheckedProgressNotIn(List<String> values) {
            addCriterion("checked_progress not in", values, "checkedProgress");
            return (Criteria) this;
        }

        public Criteria andCheckedProgressBetween(String value1, String value2) {
            addCriterion("checked_progress between", value1, value2, "checkedProgress");
            return (Criteria) this;
        }

        public Criteria andCheckedProgressNotBetween(String value1, String value2) {
            addCriterion("checked_progress not between", value1, value2, "checkedProgress");
            return (Criteria) this;
        }

        public Criteria andCheckDateIsNull() {
            addCriterion("check_date is null");
            return (Criteria) this;
        }

        public Criteria andCheckDateIsNotNull() {
            addCriterion("check_date is not null");
            return (Criteria) this;
        }

        public Criteria andCheckDateEqualTo(Date value) {
            addCriterion("check_date =", value, "checkDate");
            return (Criteria) this;
        }

        public Criteria andCheckDateNotEqualTo(Date value) {
            addCriterion("check_date <>", value, "checkDate");
            return (Criteria) this;
        }

        public Criteria andCheckDateGreaterThan(Date value) {
            addCriterion("check_date >", value, "checkDate");
            return (Criteria) this;
        }

        public Criteria andCheckDateGreaterThanOrEqualTo(Date value) {
            addCriterion("check_date >=", value, "checkDate");
            return (Criteria) this;
        }

        public Criteria andCheckDateLessThan(Date value) {
            addCriterion("check_date <", value, "checkDate");
            return (Criteria) this;
        }

        public Criteria andCheckDateLessThanOrEqualTo(Date value) {
            addCriterion("check_date <=", value, "checkDate");
            return (Criteria) this;
        }

        public Criteria andCheckDateIn(List<Date> values) {
            addCriterion("check_date in", values, "checkDate");
            return (Criteria) this;
        }

        public Criteria andCheckDateNotIn(List<Date> values) {
            addCriterion("check_date not in", values, "checkDate");
            return (Criteria) this;
        }

        public Criteria andCheckDateBetween(Date value1, Date value2) {
            addCriterion("check_date between", value1, value2, "checkDate");
            return (Criteria) this;
        }

        public Criteria andCheckDateNotBetween(Date value1, Date value2) {
            addCriterion("check_date not between", value1, value2, "checkDate");
            return (Criteria) this;
        }

        public Criteria andSqaHumanIsNull() {
            addCriterion("sqa_human is null");
            return (Criteria) this;
        }

        public Criteria andSqaHumanIsNotNull() {
            addCriterion("sqa_human is not null");
            return (Criteria) this;
        }

        public Criteria andSqaHumanEqualTo(String value) {
            addCriterion("sqa_human =", value, "sqaHuman");
            return (Criteria) this;
        }

        public Criteria andSqaHumanNotEqualTo(String value) {
            addCriterion("sqa_human <>", value, "sqaHuman");
            return (Criteria) this;
        }

        public Criteria andSqaHumanGreaterThan(String value) {
            addCriterion("sqa_human >", value, "sqaHuman");
            return (Criteria) this;
        }

        public Criteria andSqaHumanGreaterThanOrEqualTo(String value) {
            addCriterion("sqa_human >=", value, "sqaHuman");
            return (Criteria) this;
        }

        public Criteria andSqaHumanLessThan(String value) {
            addCriterion("sqa_human <", value, "sqaHuman");
            return (Criteria) this;
        }

        public Criteria andSqaHumanLessThanOrEqualTo(String value) {
            addCriterion("sqa_human <=", value, "sqaHuman");
            return (Criteria) this;
        }

        public Criteria andSqaHumanLike(String value) {
            addCriterion("sqa_human like", value, "sqaHuman");
            return (Criteria) this;
        }

        public Criteria andSqaHumanNotLike(String value) {
            addCriterion("sqa_human not like", value, "sqaHuman");
            return (Criteria) this;
        }

        public Criteria andSqaHumanIn(List<String> values) {
            addCriterion("sqa_human in", values, "sqaHuman");
            return (Criteria) this;
        }

        public Criteria andSqaHumanNotIn(List<String> values) {
            addCriterion("sqa_human not in", values, "sqaHuman");
            return (Criteria) this;
        }

        public Criteria andSqaHumanBetween(String value1, String value2) {
            addCriterion("sqa_human between", value1, value2, "sqaHuman");
            return (Criteria) this;
        }

        public Criteria andSqaHumanNotBetween(String value1, String value2) {
            addCriterion("sqa_human not between", value1, value2, "sqaHuman");
            return (Criteria) this;
        }

        public Criteria andViewResultIsNull() {
            addCriterion("view_result is null");
            return (Criteria) this;
        }

        public Criteria andViewResultIsNotNull() {
            addCriterion("view_result is not null");
            return (Criteria) this;
        }

        public Criteria andViewResultEqualTo(String value) {
            addCriterion("view_result =", value, "viewResult");
            return (Criteria) this;
        }

        public Criteria andViewResultNotEqualTo(String value) {
            addCriterion("view_result <>", value, "viewResult");
            return (Criteria) this;
        }

        public Criteria andViewResultGreaterThan(String value) {
            addCriterion("view_result >", value, "viewResult");
            return (Criteria) this;
        }

        public Criteria andViewResultGreaterThanOrEqualTo(String value) {
            addCriterion("view_result >=", value, "viewResult");
            return (Criteria) this;
        }

        public Criteria andViewResultLessThan(String value) {
            addCriterion("view_result <", value, "viewResult");
            return (Criteria) this;
        }

        public Criteria andViewResultLessThanOrEqualTo(String value) {
            addCriterion("view_result <=", value, "viewResult");
            return (Criteria) this;
        }

        public Criteria andViewResultLike(String value) {
            addCriterion("view_result like", value, "viewResult");
            return (Criteria) this;
        }

        public Criteria andViewResultNotLike(String value) {
            addCriterion("view_result not like", value, "viewResult");
            return (Criteria) this;
        }

        public Criteria andViewResultIn(List<String> values) {
            addCriterion("view_result in", values, "viewResult");
            return (Criteria) this;
        }

        public Criteria andViewResultNotIn(List<String> values) {
            addCriterion("view_result not in", values, "viewResult");
            return (Criteria) this;
        }

        public Criteria andViewResultBetween(String value1, String value2) {
            addCriterion("view_result between", value1, value2, "viewResult");
            return (Criteria) this;
        }

        public Criteria andViewResultNotBetween(String value1, String value2) {
            addCriterion("view_result not between", value1, value2, "viewResult");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}